package com.woniuxy.enjoylife.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.woniuxy.enjoylife.entity.Community;
import com.woniuxy.enjoylife.entity.dto.SuggestDto;
import com.woniuxy.enjoylife.utils.PageResult;

import java.util.List;

public interface CommunityService {
    //社区是否被认证
    public Community isCertification(String name);

    //物业查看本小区，通过小区去查活动
    public Community findCommunityByWid(int wid);

    //查询此小区能否注册
    public boolean haveCommunity(String name);

    //提供小区名查询小区id
    public int findIdByName(String name);

    //******************用户角度***************

    //用户查询自己房屋对应的所有小区
    public List<Community> findUserCommunity(int uid);

}
